home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
System
/
MRAC
/
Symbols
/
s-reverse-section
< prev
next >
Wrap
Text File
|
1998-08-11
|
2KB
|
58 lines
s-reverse-section section pattern
0-based
This function reverse (retrograde) the contents of the choosen sections.
(s-reverse-section '(0 2)
'((a b c d e f g h i j k l m n)
(a b c d e f g h i j k l m n)
(a b c d e f g h i j k l m n)))
=> ((n m l k j i h g f e d c b a)
(a b c d e f g h i j k l m n)
(n m l k j i h g f e d c b a))
(s-reverse-section
'(1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35)
(s-complement
(c-pitch-to-symbol
'((c4 e4 g4) (c4 d4 f4 a4)
(b3 d4 f4 g4) (c4 e4 g4)
(c4 e4 a4) (c4 d4 f#4 a4)
(b3 d4 g4) (b3 c4 e4 g4)
(a3 c4 e4 g4) (a3 c4 d4 f#4)
(g3 b3 d4 g4) (g3 a#3 c#4 e4)
(f3 a3 d4) (f3 g#3 b3 d4)
(e3 g3 c4) (e3 f3 a3 c4)
(d3 f3 a3 c4) (g2 b2 d3 g3 f3)
(c3 e3 g3) (c3 e3 g3 a#3)
(f2 a2 c3 e3) (f#2 a2 c3 d#3)
(g#2 b2 c3 d3 f3) (g2 b2 d3 f3)
(g2 c3 e3) (g2 c3 d3 f3)
(g2 b2 d3 f3) (g2 a2 c3 d#3 f#3)
(g2 c3 e3) (g2 c3 d3 f3)
(g2 b3 d3 f3) (c2 e2 g2 a#2)
(c2 d2 f2 a2)
(c2 d2 e2 f2 g2 b2)
(c2 e2 g2 c3)))))
=> ((b c d f g) (i h g e d b)
(a b d e g) (g f d c b)
(b c d f g h i) (i h f e d b)
(a b d e f g) (g f d c b)
(-c -b b c d f g) (f e d b -b -c)
(-e -d -c a b d e f g) (d c a -b -d -e)
(-g -f -e -c -b a b) (b a -c -d -f -g)
(-h -g -e -d -c -b) (-b -c -e -f -g)
(-j -i -g -f -e -c -b) (-i -j -l -m -o -p -q)
(-l -k -j -h -g) (-d -e -g -h -j -k -l)
(-s -r -q -o -n -l -k -j) (-k -l -n -o -q -r)
(-p -o -l -j -i) (-i -j -l -m -o -p -q)
(-q -p -o -n -l -k -j) (-i -j -l -n -o -p -q)
(-q -p -o -m -l -j -i) (-h -i -k -l -n -o -q)
(-q -p -o -n -l -k -j) (-i -j -l -n -o -p -q)
(-q -p -o -n -m -l -j -i) (-p -q -s -t -v -w -x)
(-x -v -u -s -r -q)
(-o -p -q -s -v -x)
(-x -w -v -t -s -q -p -o -n))